fix contains method in Rect