Fixed bug with min and max