fix generation of config files problem