Error-fixing script needs to load tag_history data.  Write at end is correct.