Fix bad calculation of RPC value.