Transmission issue

I had an issue where it wouldn't go over 25 mph. It would rev up but feel like it's lagging. Tried manual shifting, it showed the gears were changing but it didn't change the acceleration.

I pulled over and restarted the car and it was back to normal.

Anyone else experience something similar?

Edit: Likely solved. It's the maximum speed function of the cruise control . Edit: wasn't the limiter. The limiter dings when trying to exceed the set speed