fixed saving configuration