fix usage of Serializer