Fix gen

fix the general worker in legacy browsers