Multiple Dynamic Segments doesn't render the right template

I’m having issues with rendering the correct template on the 3rd level of a nested dynamic segment route. I am trying to do shop/:category/:product however when going to that URL, it only renders the shop/:category everytime. Here is my Stackoverflow question that goes in more detail.

Any help please? Thanks!