fix getBlockValue