No linetrace in packaged project

Hi all,
When I try to do a linetracebychannel in my unreal project it works perfectly. Although in my packaged project it doesn’t detect my spline (See the pictures below). I have tried to change the collision settings. I have also changed the properties from “no collision” to “block all” inside the “add spline mesh component”. Does someone know what to do? Thanks in advance.

Inside ue4:

In .exe:

add spline mesh component:

LineTrace script: