Fix permission issues.