bug fixed when add client