Bug fix: the intersection function of Rect was not correct