fix an error with warning messages in txt files