Remove grammatical errors from the given text:
For solving these two serious issues, nuclear energy has been proposed as the solution for many years.
To solve these two serious issues, nuclear energy has been proposed as the solution for many years.