I found the solution to this problem here.
Enable this static mesh parameter which is used in spline.
Allow CPUAccess.