diff --git a/netCDF_visualizer_funtionality.py b/netCDF_visualizer_funtionality.py
index 895b6decc9c59cd6a4969257bb54dbce4c4769d6..1d340f33befafe31907b20ac76b1a1316c72c258 100644
--- a/netCDF_visualizer_funtionality.py
+++ b/netCDF_visualizer_funtionality.py
@@ -107,7 +107,7 @@ class maskAndFuntionality (BASE, WIDGET):
         else: #if the text space is not empty
             path = self.text_set.text() #we get the path from the text space
             #we load the netCDF file
-            ncFile = nc.dataset(path, 'r', format='NETCDF4')
+            ncFile = nc.Datasetataset(path, 'r', format='NETCDF4')
             #we get the variables from the netCDF file
             ncVar = ncFile.variables
             #we get the names of the variables