fix light attenuation