Fixed saving of config (this wasn't working for some reason...)