fix unioning of multiple rectangles