fix for the categories and tags pages