fec: wip: fixed bercurve_generator.