fix the rollup hash implementation