fix problem when sharing main instance of composite, TO REVIEW