Minor fix to command.check