Fix scope container when a object is created.

Container is first non portal_factory object.