fix bug in light properties