Fixed disabling of preferences with dependencies