fixed the resultgrid for hierarchies