fixed bug where hierarchical graph was not updated properly when switching type