tag setting bug