fix configuration file writer bug