fixed memory leak in push_back of RemoteIndex