fix computation of runNum