fixing a bug in the tag index view