Fixed thread glitch.