Adding a value in the config file caused to lose ConfigFile, hence removing write().

This PR fixes it.