fix settings update bug