fixed auto generate config