My advice: recover the working files, and make again the modifications.
Sometimes the text files get corrupted by no apparent reason.