fix visualisation of node tree when using generics