fix isWorker
fix typo