mongoid 3 fixes