fix bug with text in textField