Fixed errors in LoopChecker and Pair