fix bug with empty textinput