fix load order of app and local