fix package gen