If your throttle body is really dirty your car will need to re learn its airflow, I cleaned mine and it started reving up on its own or re s staying on slightly when I let go of the throttle.
Same thing happens if you have it ported. You have to drive sensible for a few miles to let it figger out whats happened.