Fix PermissionDirective