Fixed bug of tag statistics