Fix a trace bug which may happen with send-pubkey