fix for #770.

Invalidate sigs with negative depth.