Update code to fix application location path