fixed a bug where num of runs would only runs once