minor cleanup on stats_visitor