recover R0 after dfs