use fit.env instead of x in plot_fit_env function