Category not showing for breadcrumb

I have a products template page with category type reference that does not always work. The result is random, either correct, or it does not work.

The link should be url/category/manufacturer
instead it shows up as url/category/#, or as page id, randomly

Here is the read-only link