Fixing loopcontrol in a loop in loop.