Fix bug with saving configuration.