Fixes the style of TreeView.