Fix cmd type