fixes minor bug with textbox editing