Fix event rate calculation.