fixed a bug introduced by the deprecation of Mongo::ReplSetConnection