Bug fixing in text