Issues with setting the edge