bug fix (error when selecting Tag)