fix for aligning cloned rects to the grid