bug fix for textfield