fix a crash when nothing is entered.