Fix serializer and Mongoid bug