fix application context