Fixed a problem with over-combination of edges