Fixing saving configuration