reset of tags when exiting
fix for tms error