Fix a bug of trace-viewer