mongoid 4 fixes