fix the bug in parse.py
complete fix the bug in parse.py