Fix rectangles