Fix for torrent_id == -1