diff --git a/smash/web/tests/test_statistics.py b/smash/web/tests/test_statistics.py
index 92e19cf5a8dbfe588ae20a1a311197617e392c2c..af58590938e9870239cbfb1eb38c477e71b785b1 100644
--- a/smash/web/tests/test_statistics.py
+++ b/smash/web/tests/test_statistics.py
@@ -40,7 +40,7 @@ class TestStatistics(TestCase):
         statistics = self.statistics_manager.get_statistics_for_month(self.now.month, self.now.year)
         self.check_statistics(statistics, 0, 0, 1, {"C": [1, 1]}, ['Scheduled'])
 
-        statistics = self.statistics_manager.get_statistics_for_month(self.visit_end.month, self.now.year)
+        statistics = self.statistics_manager.get_statistics_for_month(self.visit_end.month, self.visit_end.year)
         self.check_statistics(statistics, 0, 1, 0, {"C": [0, 0]}, ['Scheduled'])
 
     def test_get_statistics_for_month_one_appointment_visit(self):