Fix internal edge contacts. Fixes #34.