Fixed connecting problem from client