fixed numpy iterator