Fixed bug in new adaptive edges.