fixed some bugs when adding split cmd