Fix mongoid config