fix the bug that PairParser fails to parse adjacent pairs