Fix client_write brain damage