Hotfix: Inline function causes an error when used in Email event