fix client init loop