Add debugging log.
Fix block_ptr value bug.