Fix tag category selection bug