Fix mongodb-connector code