fixes issues with tags