# Event delegate do not work correctly , possible bug.

**URL:** <https://forums.unrealengine.com/t/event-delegate-do-not-work-correctly-possible-bug/696554>\
**Category:** Programming & Scripting\
**Tags:** Event-Handler, UE5-1, Blueprint\
**Created:** [November 22, 2022, 8:20am UTC](https://forums.unrealengine.com/t/event-delegate-do-not-work-correctly-possible-bug/696554 "2022-11-22T08:20:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndenStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andenstudios/32/594950_2.png) [@AndenStudios](https://forums.unrealengine.com/u/AndenStudios)\
**Post date:** [November 22, 2022, 8:20am UTC](https://forums.unrealengine.com/t/event-delegate-do-not-work-correctly-possible-bug/696554/1 "2022-11-22T08:20:16Z")

</div>

Hi, I updated my project to UE5.1 from UE 5.0.3 and I get a weird compilation error at startup or when I try to package the game. If I press compile when I open the blueprint the rror dissapear but then I cannot package the game.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/8/e889448fccbefecc8d19c321c00f5e3dab44ef73.png)  
The first bind is calling a function where it will bind it again to a Game Instance.  
The thing is the event it has the correct signature and enum type.  
Event to bind.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/b/d7b09296e8ce846744a69408d539d91e0a1e09d9.png)

I even tried to create a new custom event in the dropdown when you do a create event and I have the same error.

If now I remove the enum type from the input in both the event where I want to bind and the source event then It works correctly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/e/ddecd1be770f7049e666a487c4b365835225cf50.png)
