removed a minor bug from InputParser.