Fixed error on settings update

Fixed #87