Fixe problem with part size for thread number