fix cmds bug