Fix bug: let PerfIterator only run once