Fixed settings saving.