fix: issue with assign random id while updating ddrType