Fixed a loop in setting the block.