fix textfield bug