Fix permissions and a typo