Fixed crash when user inputs nothing.