fix permission and typo