Fix Rect handling sizes correctly