Add option to fix duplicate vertices