LPS-49461 Fix array positions when copying