Fixed a significant regression in getAncestors' behavior with four or three options