MODE-1953: Corrected how the name pattern is passed to internal iterator