Fixed wrong use of array_merge.