fixed another error with blank input