Fixed bug with healpix calculation