to fix error serializer