fixes mongoid