fixed mutable array enumeration issue