Fix array merge