Fix bug with darkening screen