Fixed some errors in the ranges.