Fixed settings saving