fixed issue where changes to settings wouldn't be saved