fixed add-edge!