Fix bug 957: Return pubkey properly