Fix the bugs of InterpreterIndexOf class.