fix glitch in serializer