torch permissions fix