Update TagsController.php

Minor bug fix