torrent_history fixes