Settings ui breaks when checking box on subsequent openings