fix issue with light in resolution change