fixed env reloading when using "add --config"