# Tag gets broken if the first topic to use it is deleted

**URL:** <https://meta.discourse.org/t/tag-gets-broken-if-the-first-topic-to-use-it-is-deleted/51701>\
**Category:** Bug\
**Created:** [18 Ottobre 2016, 5:05pm UTC](https://meta.discourse.org/t/tag-gets-broken-if-the-first-topic-to-use-it-is-deleted/51701 "2016-10-18T17:05:12Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [28 Ottobre 2016, 7:21pm UTC](https://meta.discourse.org/t/tag-gets-broken-if-the-first-topic-to-use-it-is-deleted/51701/13 "2016-10-28T19:21:47Z")

</div>

Unfortunately, @falco’s fix relied on an unreleased version of Active Record. Also, there’s the case of tags that have never been used not showing up in some cases. I made [a fix](https://github.com/discourse/discourse/commit/8c9d390cacafce80c622f94ec00661d8a5278bd0) today for that and the problem mentioned in this topic (tag on deleted topic).

---

_[View the full topic](https://meta.discourse.org/t/tag-gets-broken-if-the-first-topic-to-use-it-is-deleted/51701)._
