fixed a bug in the shadow map