fixed a bug in line intersectiont ests