Fixed the with_ancestors flag