Solve finding the content category.

In a slightly more robust way.