Crashing on adding an animinstance

I have created a simple fps character witch has two animations (Idle and reload).
so i created a animation blueprint(with parent set to c++ animinstance) and made a state in witch it goes to idle on entry.
Then i created a transition from idle to reload(happens when isreloading = true).

so insde the animinstance i created a simple function witch returns isreloading = true , if key R is pressed.
Then in the event graph of the animation blueprint , i have to attach my function to update animations in order for this to work.
But as soon as i attach it to the function(Fig.2) , and compile, unreal crashes.

pl help…