Fix incorrect file permissions