Fixed a bug concerning sizes of edge