fix kafka serializer's bug