Fixed #255

* $categories and $tags work now correctly
Merge pull request #257 from frmwrk123/fix/255

Fixed #255