Fixed empty input issue.