Fix bug when saving settings array for first time