Tweak toTree function