Fixing security rules