Repair application.cpp base state.