Fix for negative numbers.