There were a bug when the rectangles extents where not at the origin. Some debugging statement have laso been removed.