fixed the light source bug, now supporting up to 8 light sources