pan detection error