fixing the saveconfiguration functionality