more change of x into fit.env in plot_fit_env function