fix preferences