Fixed bug where the max value of sediment, phosphorus, and erosion was not calculated correctly.