Fix the app error state