fix mongoid syntax error