BUGFIX : set the configuration values when closing settings window