fix checkClient