diff --git a/nifty/plotting/plots/heatmaps/glmollweide.py b/nifty/plotting/plots/heatmaps/glmollweide.py
index 678a32aa071ede60dca9f16f42760001c5f28b09..d98d8b780b20621643b4291fd7467afab964ac56 100644
--- a/nifty/plotting/plots/heatmaps/glmollweide.py
+++ b/nifty/plotting/plots/heatmaps/glmollweide.py
@@ -22,6 +22,7 @@ class GLMollweide(Heatmap):
             data = self._mollview(data, nlat, nlon)
         super(GLMollweide, self).__init__(data, color_map, webgl, smoothing)
 
+    @staticmethod
     def _find_closest(A, target):
         # A must be sorted
         idx = A.searchsorted(target)
@@ -33,15 +34,14 @@ class GLMollweide(Heatmap):
 
     def _mollview(self, x, nlat, nlon, xsize=800):
         f = pylab.figure(None, figsize=(8.5, 5.4))
-        extent = (0.02, 0.05, 0.96, 0.9)
         x = np.reshape(x, (nlon, nlat))
         ra = np.linspace(-np.pi, np.pi, xsize)
         dec = np.linspace(-np.pi/2, np.pi/2, xsize/2)
         X, Y = np.meshgrid(ra, dec)
         gllat = pyHealpix.GL_thetas(nlat)-0.5*np.pi
         gllon = np.arange(nlon+1)*(2*np.pi/nlon)
-        ilat = _find_closest(gllat, dec-0.5*np.pi)
-        ilon = _find_closest(gllon, np.pi+ra)
+        ilat = self._find_closest(gllat, dec-0.5*np.pi)
+        ilon = self._find_closest(gllon, np.pi+ra)
         for i in range(ilon.size):
             if (ilon[i] == nlon):
                 ilon[i] = 0
diff --git a/nifty/plotting/plots/heatmaps/hpmollweide.py b/nifty/plotting/plots/heatmaps/hpmollweide.py
index 6b6cae0fd3f2a383b5d31a31a52d6296c5613186..34612693e08bbcc51552ec2e1b419c500df00b0e 100644
--- a/nifty/plotting/plots/heatmaps/hpmollweide.py
+++ b/nifty/plotting/plots/heatmaps/hpmollweide.py
@@ -24,7 +24,6 @@ class HPMollweide(Heatmap):
 
     def _mollview(self, x, xsize=800):
         f = pylab.figure(None, figsize=(8.5, 5.4))
-        extent = (0.02, 0.05, 0.96, 0.9)
         nside = int(np.sqrt(x.size//12))
         base = pyHealpix.Healpix_Base(nside, "RING")
         ra = np.linspace(-np.pi, np.pi, xsize)