Fixed a Thread glitch