Fix get hierarchy value