fixed the restoration of the application's previous state by removing an unnecessary check for the previous execution state