fix the blank input issue