fix for threshold
Merge branch 'master' of https://github.com/zenithcoin/ZenithCoin