Fixed some permissions and typos