fix figure position
avoid duplicated edge insertion