Corrected the lifecycle activity phase of the app.