--cmd does not work,it has a bug,fix it