Fixed bugs with torrent creation