fixed bug in block data extraction