Fix configuration saving