Fixed bug when opening torrent file