fixing issue #4992
Merge pull request #5035 from alexanderrichards/multicore_fix

fixing issue #4992