#1248 Fix thread pool regression