fixed multiple client problem