[Security] Recheck infractions: fix error caused by refactoring