Fix order of reading values from rpc data