fix multiple iterations