fix permissions for files and folders