Fix mongoid format