Fixed a case where only one client can connect