bug fixing for the parsers