clean history.tpl