fix SDK permissions