Fixed a bug in the data viewer.