Fixed long serialization