EG: fixed bug in brightness during night