bug where num runs would not be updated corrected