Correct bug with load and save settings function