Fix getParents ordering