Fixed the input parser.