fix bug in DoubleObjectPair