Update to UE5.1 have anim layer bug

After several attempts to get the AnimNodeReference to see the linked layer, I finally checked the OnUpdate function on the State Machine node on the AnimGraph. I deleted the binding and recreated it. Then copied the nodes from my function that was not working, and pasted into the new binding, and it compiled! Very buggy still I have to say.
Maybe this helps someone else trying to implement Animation Layers.