fix num-threads argument