fix the exec cmd