fix settings save