fixed empty text box bug