Fixed permissons for directories.