fixed multiple clients problem