fix sig cache
Merge pull request #2132 from matiu/bug/signatures-cache

fix sig cache