Bug/safe unspent

fix a bug when excluding used unspent for txproposals.