correct some problems related to autogenerate config on first run