Fix KB detection