Fixed bug on get_ancestor_exit_points method.