Fix crash with fast multi core devices