Fix thor files