Probably a typo: Changing an array while looping over the same instance is not really valid AFAIK.