Fixed bugs with reading in HEIRARCHY