fix bug for threads that have a 0 in number