handle_stats: style fixes