fix for free tags in writetag