tree-hash fix from Monero