fixed error on opening settings