Fix: Duplicate values being written to AppSettings