Fixed bug where config was reset when restarting SetupWindow.