diff --git a/fsl/data/image.py b/fsl/data/image.py
index ba2ae2d78ee572ca17b38fa6a4ee7fb3ec9214d0..90a1c8e637ff8f4d87eed9ae05d6f66bc4a585ab 100644
--- a/fsl/data/image.py
+++ b/fsl/data/image.py
@@ -137,7 +137,7 @@ class Nifti(object):
         # corresponds to world location (0, 0, 0).
         # This goes against the NIFTI spec - it
         # should just be a straight scaling matrix.
-        elif header['qform_code'] == 0 or header['sform_code'] == 0:
+        elif header['qform_code'] == 0 and header['sform_code'] == 0:
             pixdims       = header.get_zooms()
             voxToWorldMat = transform.scaleOffsetXform(pixdims, 0)
 
diff --git a/fsl/data/melodiclabels.py b/fsl/data/melodiclabels.py
index 7b00eacbffd06c62312118faef73bf97f1a60381..39de23ed2cd87be55bf39490f5bd59ec354d7a3b 100644
--- a/fsl/data/melodiclabels.py
+++ b/fsl/data/melodiclabels.py
@@ -163,6 +163,13 @@ class MelodicClassification(notifier.Notifier):
         return list(self.__labels[component])
 
 
+    def getAllLabels(self):
+        """Returns all labels that are currently associated with any
+        component.
+        """
+        return list(self.__components.keys())
+
+
     def hasLabel(self, component, label):
         """Returns ``True`` if the specified component has the specified label,
         ``False`` otherwise.