fix problem with torrent initialization from state