Fixed array merge issues