fix Worker.prune