Fix regen task