Fix ugly-light-function