Fixing split tree for both html and word use cases