settings save bugfix