interim fix to issue #2205 (problem with IsInRange)

revision 2, factoring in pchote's suggestion.