Make torch permissions proper.