fixed a bug around writing blank content to the settings file