Why this doesn't work?

OK, I understand what you want to do.

You may want to try the blueprint from below image. It works perfect for me, maybe it is not perfect but you can improve that.

I used the Get Forward Vector to make the trace always in front of the character.

Let me know if it works for you.