Avoid access to immutable array