Fixed error in settings update script causing data wipes.