Fix loop condition.