fixed mongoid config.