fix bug in parse.py