fixed array merging