Fix bug preventing countsForProgressBar working