Fix for nil maxValue

Set default maxTotal to stop JSON error when maxValue isn't greater
than minValue