Wrongly referring to the iter variable

It should refer to the status variable instead.