Fixing up permissions.