Fixed issue with comparing edges.