fix internal command bug