Fix useless detection.