Fix Torch permissions