Fixed bug on LoopChecker