Fix stack overflow exception from accidental recursive call (introduced with extension method refactoring)
Fix compile errors in Security plugin.