reset rindex when start debug again