writing wrong settings file