fixed some bugs re: loading/saving settings