documentation generatio: fixed issue with hierarchy metadata being lost