fixed a bug regarding instance relationship plugins