Do not exit too early in the loop