SPEED-6 Fix an id error generating in record()