Fixed bug in file input based parser