GLSL Shadows offset

There are two spotlights i the scene. For some reason when the lights are far away from the object the shadow appears further back from the cube and if it is too close to the ground the shadow disappears. When the spotlight is moved next to the cube the shadow is in the right place.

Any ideas of why it is doing this or how to fix it.

Cheers,
urbaMokey team.

Attachments