         print ("APP: Resetting")
 
         // Create a new system
-        let system = System (listener: app.system.listener!,
-                             account: app.system.account,
-                             onMainnet: app.system.onMainnet,
-                             path: app.system.path,
-                             query: app.system.query)
+        let system = System (listener: app.listener!,
+                             account: app.account,
+                             onMainnet: app.mainnet,
+                             path: app.storagePath,
+                             query: app.query)
 
         // Stop the existing system
         app.system.stop()

        mainnet = (accountSpecification.network == "mainnet")

        // Ensure the storage path
        let storagePath = FileManager.default
            .urls(for: .documentDirectory, in: .userDomainMask)[0]
            .appendingPathComponent("Core").path


        
        // Assign and then configure the new system
        app.system = system

        // Passing `[]`... it is a demo app...
        app.system.configure(withCurrencyModels: [])
    }

