Fixed variable name.

A `RESTART` variable is initialized to false, but the rest of the function uses a variable named `RESTART_APP`. This PR fixes this.