minor fix, indexof rewriter opt