fixing an input parsing error when there is wrong input format
Merge pull request #102 from dbickson/master

fixing an input parsing error when there is wrong input format