fix client creation null error