Fixed bug in block output.