another fix to counting hourly stats