rect_intersect fix