fix heap bug, one more potential intersect bug