When mine did that it was the idle control valve. Inexpensive part, easy quick fix.