fixed _clear_ancestor_cache call