fix incorrect parsing bug