Fix thread queue warning