fix mongoid search