This could also be caused by a bad throttle position sensor.

I had this problem and replaced the throttle position sensor and it went away.

Brian