purgeWorker bug fix

purgeWorker may not function properly.