Fix duplicate vertices