some fixes to edges