work generator bug fixed