fix bug:crash when add torrent file