fix worker factory