fix _checkSignature bug