fix small bug in viewtags