detection error fix