Fixed bug in Treesplitter