Light Bug/Problem

so i make this lighting module and if there’s a layer of light the shadow can’t be seen anymore except if there’s one light so here’s the example when there’s a layer of light

here’s what it look like when there’s only one light
image

how could i fix this? to see the shadow again?