fix auto-brightness