Fixed an error

Fixed an error where simply trying to get input would throw an exception