fix bug that amd, cmd