Negative values are set to the max