fixing gen