fix query that updates bounce_stats