Fix logic for cmd_block.

Silly mistake by me.