fix parsing bug