Fixed client initialization bug.