corrects hierarchy of settings