prevent bad Range value from causing trouble