fixed dfs command bug