Fix problem of creating vertices after deleting some.