fix computing the extent of block (fix #1)