Fix for add_torrent