trying to fix mongoid issue