fix libgen issue