[#57212010] fix visibility check
Merge pull request #165 from BrandyMint/aleksxor/bug/57212010-fix-deferred-events

[#57212010] fix visibility check