Fix an issue with leading zeros in some ranges