a lot of tree rendering bugs fixed