Fixed issue in context application detection