Detrend trace before deconvolution