Fix a bug preventing Mongoid from connecting to MongoDB