fix issues found in jsonrpc exporter