Fix thread server