text field bug fix