fix error in generation id