[bugfix]ensure unique id for embedded schema