fix mongoid support