vacuum advance idle issue?

After rebuilding the engine the cam sprocket locating pin snapped off. As a quick fix had the sprocket spot welded to the center bolt and also where the pin should be. Long story short having almost the same issues. Distributer is reman plugs,wires ect...all new. I suspect the weld job isn't quite right and will investigate tomorrow.