fixed textfield bug