Fixing testnet crash in RPC