fixed bug with 'tag' and 'tagged' class