Fixing files and perms