fixed short edges. buggy with infinite loop somewhere