Fixing upgrade logic for disablesecurity setting