fix dfs