Fix display issues with threads