Fixed text box update bug