Fixed bug that was preventing edges from being constructed properly.