fixed a parsing bug