Fixed unPaire function.