Fix crashing when selecting secondary tag