Fixed bug with serializer type