fixed issue with serializer not self-closing elements