fix bug when changing profile state from listbox to textbox