Index: /trunk/scripts/SyncEditorLayerIndex.groovy
===================================================================
--- /trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13774)
+++ /trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13775)
@@ -61,6 +61,6 @@
         Main.determinePlatformHook()
         def pref = new Preferences(JosmBaseDirectories.getInstance())
+        Config.setPreferencesInstance(pref)
         pref.init(false)
-        Config.setPreferencesInstance(pref)
         def script = new SyncEditorLayerIndex()
         script.setupProj()
