Fix thread runs