Fixed the mesh + kdtree intersection test.