fixed bug, textfield switch to textview cause dead loop

see #61