fixed the enum serializer