mongoid 4 fix