Bug fix: forgotten elif in find_ancestor method