Fixed #255

* $categories and $tags work now correctly