Better alignment for rects