Fixed typo in parsePair