Change tabs to spaces
Fix bug where sort levels would close premature