Fixed the config file re-saving if nothing changed.