Fixed an issue in tag2file - second try