diff --git a/src/main.py b/src/main.py
index d25a7367af97249917b0f8fdc574fa84822b6dc2..d9e913cb9931f2cadfab6d96ed3bfa69e4b9c4af 100644
--- a/src/main.py
+++ b/src/main.py
@@ -369,9 +369,9 @@ class Plotter:
 
         # Increase the font size for the x and y tick labels
         for tick in axes.xaxis.get_major_ticks():
-            tick.label.set_fontsize(15)
+            tick.label1.set_fontsize(15)
         for tick in axes.yaxis.get_major_ticks():
-            tick.label.set_fontsize(15)
+            tick.label1.set_fontsize(15)
 
         sns.set_theme(style="whitegrid")
         sns.despine(left=True)
@@ -401,9 +401,9 @@ class Plotter:
 
         # Increase the font size for the x and y tick labels
         for tick in axes.xaxis.get_major_ticks():
-            tick.label.set_fontsize(15)
+            tick.label1.set_fontsize(15)
         for tick in axes.yaxis.get_major_ticks():
-            tick.label.set_fontsize(15)
+            tick.label1.set_fontsize(15)
 
         sns.set_theme(style="whitegrid")
         save_plot(plt, 'demographics_gender')