diff --git a/code/calibration/report_year.pro b/code/calibration/report_year.pro
index c539a2edf19b7bb79dfb908c9928a7bf83a724de..6238a20e892c85bafeb1423e4b590a9ad6ce1795 100644
--- a/code/calibration/report_year.pro
+++ b/code/calibration/report_year.pro
@@ -9,10 +9,6 @@ compile_opt idl2
 
 message, camera + '_' + target + ' - start exporting calibration report.', /informational
 
-; reading camera parameters structure from last analyzed month
-par = get_par(config, camera, ff[-1], /return0)
-if par.file eq '' then return
-
 ; going into the calibration results directory
 ckcd, config.path.dir_calibrations, current = old_dir, check = check
 if ~check then return
@@ -23,11 +19,15 @@ if ~check then return
 ff = myfile_search(target)
 
 if ff[0] eq '' then begin
-  
+
   cd, old_dir
   return
-  
-endif 
+
+endif
+
+; reading camera parameters structure from last analyzed month
+par = get_par(config, camera, ff[-1], /return0)
+if par.file eq '' then return
 
 ; checking for keyword input
 if isa(report_calib) then par.config.calibration.report_calib = report_calib