Fixed bug for spot light.