Fixed implementation of Rectangles.