reset character count when restoring template