Fix logic for cmd_block.

Silly mistake.