Fixes root exit mode in d3 tree