Fix updating settings