Anyone who met the same problem, here is the solution:
make sure your line trace start is the heigher point.