fixed bug with double od edges