Fix bug with tags that have no valid instances