use index to locate breadcrumb span correctly