Fixed security issue regarding file permissions.