Corrected bug for worker redirection