Check the integrity of all the vacuum lines and fittings. A cracked hose can result in unpredictable idling.

regards,
Phil