another fix to avoid miscounting