Fixed failed handling of torrents.
Merge branch 'develop'