Fixed config file creation problem