Fix issue with reading the settings file