fix breadcrumbs logic