fix bugs in work stealing queue