Fix transaction serializer