bug fix for settings file