fix bug serializer