Fixed a problem of text input by the UITextField.