fix invalid assert in policy and fix minor cleanup issue
fix invalid assert in policy and fix minor cleanup issue

aindigo/rasterbar_libtorrent,aindigo/rasterbar_libtorrent,aindigo/rasterbar_libtorrent,aindigo/rasterbar_libtorrent,aindigo/rasterbar_libtorrent,aindigo/rasterbar_libtorrent