Fixes a crash when the range is not found.