Fix instantiat issue in client::send and client::receive