Fix detection error