Fix settings saving error

fixes #205