Views sheet number value not showing

Sorry I think I know what’s happening! The ReferenceCalloutsView node is getting the the main view. Not the the split up dependent view the reference callout is in. Would anyone know how to fix that?

For instance its getting
image
But it should be getting one of these two views, whichever the reference callout is in
image

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)

def GetOwnerView(item):
	if hasattr(item, "OwnerViewId"): return item.Document.GetElement(item.OwnerViewId)
	else: return None

items = UnwrapElement(IN[0])

if isinstance(IN[0], list): OUT = [GetOwnerView(x) for x in items]
else: OUT = GetOwnerView(items)

@Ewan_Opie simple fix by any chance? Had covid this week so only just now been feeling ok to dynamo again :sweat_smile: still need to try out your tag all views node

maybe something here