Fix the std::vector replication.