Fixed $package array merging