fix Pair class undefined