Multiple minor bugfixes, threads now display in correct order