Fixed an error in the values for range detecting.