fix a bug that prevented modifying empty config files