fix field definition serializer