Grouping or Auto Layout elements now not well aligned?

I tried to make a grid with outline rectangles, I have make sure the position of the outline has been set to center, yet the result after I grouped or make them auto layout, the line doesn't well aligned instead it's curving.
How to solve this issue?
