Fixed a bug where it would get the wrong extreme values for data that had an input of a string.