Fixes a broken parameter for custom events