fix numthreads