fixed Pair constructor bug