Fixed #1, did not catch invalid input