handle undetected line correctly