Fixed permission issues.