diff --git a/cal_tools/cal_tools/agipdlib.py b/cal_tools/cal_tools/agipdlib.py
index e64bb42e2a9f4235e97cc3c68446313553c8a09f..dc2d49e9b71e88972b319bdd82aeb97915ab080e 100644
--- a/cal_tools/cal_tools/agipdlib.py
+++ b/cal_tools/cal_tools/agipdlib.py
@@ -236,7 +236,7 @@ class AgipdCorrections:
         data_dict = self.shared_dict[i_proc]
 
         image_fields = [
-            'data', 'gain', 'mask', 'trainId', 'pulseId', 'cellId', 'blShift',
+            'trainId', 'pulseId', 'cellId', 'data', 'gain', 'mask', 'blShift',
         ]
         compress_fields = ['gain', 'mask']