fix inappropriate property iteration on array