workflow fixed with hierarchy tree