Fixed Mongoid issue