fix mongoid 4