fix bug when #client not exist