my car used to do that too. there's a valve right under the throttle body, i think it's called the FITV or fast idle thermo valve, take off the intake and inside the throttle body on the left, there are 2 ports. put your finger over the bottom one, and if it idles normally when its covered then it's the FITV. i took mine apart and put it back together and it was fine.