Bug fix in scaling sparse data to ranges with min < 0.