fix permisson for torch