Fixed a bug in the torrent creation process