text entry goes back to empty after input