fixed bug with tags