fixed a bug regarding instance relationships plugin