Fix bug with threadpool creation with 1 thread
Fix bug with threadpool creation with 1 thread

tlrmchlsmth/momms,krzysz00/momms,tlrmchlsmth/momms,tlrmchlsmth/momms,krzysz00/momms,krzysz00/momms,krzysz00/momms