Default Screen auto brightness, pitch black when I start sometimes

Hi, sometimes when I start my s5 the auto brightness is set to 0 and after like 5 sec or so it gets corrected.

However this is very annoying when your out in the sun and start the screen and have to wait before it corrects the brightness, is there any way to fix this?

Sent from my SM-G900F using XDA Premium 4 mobile app