fix new id generator