minor bug fix for tags