fix mongoid config