fixes in mongoid support