fixed handling of application context xml file