fix hierachial