Fix for light calculation bug