fix missing reserve in emplace_back