Fix permission for Torch.