fixed get edges bug