Just did some work to replace the head gaskets and clean the fuel injectors. Before I had codes for cylinder #6 misfire and a lean code from O2B2S1, and that was before I blew a head gasket. Now everything is back together and It runs great for about a minute then it idles rough and changes from high idle to low idle and repeats. Runs great on the road but as soon as it stop the rough idle starts. Codes I'm pulling now are for EGR valve closed or inop no flow detected and the O2 sensor reading lean again. No smoke from the tail pipe after running it 50 miles and I figured a misfire would be detected as well. I was thinking I left something unplugged, but everything is where it is supposed to be. The EGR system I don't have to much of a grasp on, so I'm not sure what to look for. I don't want to buy an EGR valve and the problem be something else.