diff --git a/pure code not instalable as environment/PDF_generator.py b/pure code not instalable as environment/PDF_generator.py
index d3c387f7bd83967c19d0391af4d49a164ce69fed..3b9cbcd61e5de92efdb938442e1947cc895a4f22 100644
--- a/pure code not instalable as environment/PDF_generator.py	
+++ b/pure code not instalable as environment/PDF_generator.py	
@@ -11,6 +11,7 @@ This Code is used to import integrated .chi data and processes it to to the PDF
 
 from backbone.PDF_generation_class import PDF_generation_class
 from backbone.settings.routines.PDF_generation_routine import *
+from copy import copy
 import pathlib
 rootdir = str(pathlib.Path(__file__).parent.resolve())
 
@@ -178,7 +179,7 @@ meas.PrintLogFile(rootdir + '/processed/' + meas_sampleName + '/Log_files/meas_t
 
 #~~~~~~~~~~~~~~~~~~ XRD Phase Check ~~~~~~~~~~~~~~~~~~~~~~~#
 # We want to plot the BG subtracted data for the phase check therefore we change  I to I_subtracted
-meas.I = meas.subtracted_I
+meas.I = copy.deepcopy(meas.subtracted_I)
 
 # with baseline correction and filtering the data is easier to interpret:
 meas.baselineCorrection(40)
diff --git a/pure code not instalable as environment/PDF_plotter_insitu.py b/pure code not instalable as environment/PDF_plotter_insitu.py
index 140f92d120b636b3a96e00df8e66c9eddddd01a0..5278533e47e3ca1c6e21c1664e160afd492ba0e7 100644
--- a/pure code not instalable as environment/PDF_plotter_insitu.py	
+++ b/pure code not instalable as environment/PDF_plotter_insitu.py	
@@ -47,11 +47,8 @@ path_to_Temp = rootdir + "/processed/" + sample_name + "/Reload_files/meas_Reloa
 # path_to_Temp = rootdir + "/processed/" + sample_name + "/Reload_files/meas_Reload/zns_2p_10_2.mat"
 
 
-# Here we can choose which type of PDF generation (1-3) we want to look at. 
-# Commenting / Uncommenting is enought here, the paths are fixed to the sample name.
-path =  rootdir + "/processed/" + sample_name + "/PDF_files/meas_type1_uncorrected_PDF/" #There exsist 3 methods to generate the PDF 
-# path =  rootdir + "/processed/" + sample_name + "/PDF_files/meas_type2_corrected_prior_PDF/"
-# path =  rootdir + "/processed/" + sample_name + "/PDF_files/meas_type3_corrected_after_PDF/"
+# Here we can choose which type of PDF generation we want to look at. 
+path =  rootdir + "/processed/" + sample_name + "/PDF_files/meas_type1_uncorrected_PDF/" 
 
 # Here the everthing is transfered to the class used for plotting the PDF:
 # One can flip (y = -y) certain scans by using -- , reverse_data=[1,7], reverse_style="list") -- if nessicary