Two fixes.

With the two fixes, we could add torrents directly from other applications successfully. 
Adding torrent files from slow network also works now.