fix client check