Bug: 12624  Fix nesting of SEARCH_RANGE and SEARCH_TOTAL.