Fixed stat min and max values not being regarded