fix infinite loop during counter generation if no date available