fix text_field bug