[patches] fix dfs patch