Fix text file