Bug fix AdaptiveEdges