Fixed a loop break