Fix for torrent_id == -1 by Niels