Fixed bug: IRRE - Deleted records are added to array of related records