A code fix for saving configuration