fix for the issue with tree layout moveSubtree