fix the bug of block reward