Fixed validator issue in worker.js