bug fix: edge was output twice