fixed tree builder bug
Merge pull request #49 from sanity/insetOutset

fixed tree builder bug