Fix bad using of new wallet.getPocket api.