diff --git a/src/text.c b/src/text.c
index 8c447ade35f6bb6f56c1e11d65c631da7b1761ad..e50b6675f50658d47c2903518a84cae87d98439d 100644
--- a/src/text.c
+++ b/src/text.c
@@ -2449,8 +2449,7 @@ bool do_int_spell_fix(const char *word)
 	/* If a replacement was given, go through all occurrences. */
 	if (proceed && strcmp(word, answer) != 0) {
 	    openfile->current_x--;
-	    do_replace_loop(TRUE, openfile->current,
-				&openfile->current_x, word);
+	    do_replace_loop(TRUE, current_save, &current_x_save, word);
 	}
     }