generation length mod fix