Correction of 'contains' behavior in Rect