fix signature passing and verify in demo