Fix array removals when in sharded environment.