fixed client.send bug