settings file is not saving