Fixed config file creation