My car did the same thing and it was my MAF that was going bad.