fix client connect problem