Fixed fit_tail: correct replacement by tail

Previously, fit_tail was replacing gf data with tail data only betw n_min and n_max. Now between n_min and gf.mesh().size()