fixed small torrent bug, added debug for patch