fix collection relationship plugins.