Fixed client init bug