fix a bug in highlight-range exposed by the contour window

closes PR 13488
related to PR 13491