Fixed rpc return value bug