EG: fixed bug in brightness phase