Fix for idealThreadCount returning -1