small bugfix for init of thread number
Merge pull request #360 from mdkus/master

small bugfix for init of thread number