Help with trigger "Object Name ID"

Im testing out some triggers and the custom name doesn’t show up when garrisoned in a unit or building, is there any workaround for this?