bugfix, repeat heuristics and average the results