fixed Bug in IntersectionCode