Corrected result.ancestor type