fix bug in multithread parameter to smalt