fix mongoid 3.2.1