Spline Mesh Component has no collision after packaging

Everything was doing well in the editor but after I packaged the game, the spline mesh component has no collision at all. I’m using the line trace by channel to check whether the line trace hit something. Everything in the level gets the true hit result, only the wall(spline mesh component) has false hit result.

What should I do in order to enable the collision of the spline mesh component works in the packaged game.