Fixed #517

Edges alignment