Fix NaiveWorker infinite loop