Fixed a bug when sharing a file.
Chmod 0777 on some files.