Fixed bug with floating-point id for generation