fixed bug in tagging via smart tag