This isn't just an American problem. It will happen to any system that exists for a long period of time.
The solution is to have an upper limit for candidate age, lets say 60, and an upper limit to voting age, lets say 65.
There is already a lower limit for voting, we should have and lower limit for candidate age as well, lets say 30.