Fix dangling ref to enumerators branch