Fix permissions of the files directory