fixed the bug in the parser