Fix edges bug.