Fix edges