minor bugfix with length of list and max values reporting 0