Is this a temperature related issue?.. Does it only happen when the car has warmed up or does it do it when the engin is cold too?
You could start with the basics, take throttle body of and give it a clean, take ISV off and soak it in petrol overnight to clean it up, and give the micro switches a squirt of WD40 whilst your at it, the bottom one may have got stuck.