fixed textbox parsing issues