Fixed errors in the creation of a new config file.