fix the signature verification