fix bug for light