LoopEnd fixed