Array self assignment fix