fix model instance's id