[upstream] at-3.1.15: fix statistics.