fix generation of ROM_ID during restart