fix weird empty text input issue