Fix inner model id do not automatic set when set a inner model.