Correct loop break condition.