Fix array copying.