Fixed typo in getMinMax