Fix mongoid error on heroku