Use correct value for range
The current range value causes an underflow when negated and pushes anything less than zero to the minimum.