Fix to unbreak backwards compatibility

Tested with both single connection and connection to replica set.