Fix bug is settings saving