Tag history bug fix