Fixed bug in block.