Fix array subset operation