Fixed closing blocks.