Copy array before adding to it.