fixing problem with settings file