Fixed typo and permissions issue