fixed bug in parser.py