Corrected Range Check