Remove unnecessary cmd