Fix a bunch of preferences errors