Fix error when nothing is input