fixed generate.