fixed a bug in ray_triangle_intersect()