High idle then dies

Just on a whim I replaced the power valve and now it idles perfectly!

well good, but for future reference you should do some diag before parts swapping unless of course you just have a backfire...