Wrong timing to exit the loop.