[backend] repair statistics code...