Fix a bug in Rect::intersect