Unfolding spectral analysis of the Fermi-LAT data